
var saijitu_y = new Array(10);
var saijitu_m = new Array(10);
var saijitu_d = new Array(10);

saijitu_y[0]="0";    saijitu_m[0]="0";      saijitu_d[0]="0";
saijitu_y[1]="0";    saijitu_m[1]="0";      saijitu_d[1]="0";
saijitu_y[2]="0";    saijitu_m[2]="0";      saijitu_d[2]="0";
saijitu_y[3]="0";    saijitu_m[3]="0";      saijitu_d[3]="0";
saijitu_y[4]="0";    saijitu_m[4]="0";      saijitu_d[4]="0";
saijitu_y[5]="0";    saijitu_m[5]="0";      saijitu_d[5]="0";
saijitu_y[6]="0";    saijitu_m[6]="0";      saijitu_d[6]="0";
saijitu_y[7]="0";    saijitu_m[7]="0";      saijitu_d[7]="0";
saijitu_y[8]="0";    saijitu_m[8]="0";      saijitu_d[8]="0";
saijitu_y[9]="0";    saijitu_m[9]="0";      saijitu_d[9]="0";

function check_saijitu(iYear, iMonth,iDay){
    if(iMonth == null || iDay == null)
        return false;

    for(i = 0 ; i < 10 ; i++ )
    {
        if(iMonth == saijitu_m[i] && iDay == saijitu_d[i])
		{
			if(saijitu_y[i] == "0")
    	        return true;
			else
			{
				if(iYear == saijitu_y[i])
    	        	return true;
				else
    				return false;
			}
		}
    }
    return false;
}
